
/**
 * created on 2012-03-21
 * @author  qiujz
 * @version 1.0
 *
 * Copyright (c)  Founder Software (Suzhou) Co., Ltd.  2012
 *  All rights reserved.
 *
 * 
 * ================================================================
 * Change Revision
 * ---------------------------------------------------------------
 *    DATE                BY                   COMMENT
 * ---------------------------------------------------------------
 * 2012-03-21         qiujz                Create class
 * 
 *
 * ================================================================
 */
package com.founder.bm.controller
{
	import com.founder.framework.base.BaseController;
	import com.founder.framework.base.BaseModel;
	import com.founder.framework.interfaces.IControllerable;
	import com.founder.bm.entity.EnrollDtlQueryParameter;
	import com.founder.bm.common.CommonUtils;	
	import com.founder.bm.model.EnrollDtlModel;

	import mx.collections.ArrayCollection;
	import mx.core.FlexGlobals;
	import mx.rpc.AsyncResponder;
	import mx.rpc.AsyncToken;
	import mx.rpc.events.FaultEvent;
	import mx.rpc.events.ResultEvent;
	import mx.rpc.remoting.RemoteObject;
	
	/**
	 * 页面控制器对象
	 * @author qiujz
	 */
	public class EnrollDtlController extends BaseController implements IControllerable
	{
		/**
		 * 构造函数
		 * @param model
		 */
		public function EnrollDtlController(model:EnrollDtlModel)
		{
			super(model);

			_service=new RemoteObject();
			_service.destination="dm.enrollDtlService";
			_service.endpoint=CommonUtils.getServer(CommonUtils.DM);
			_service.showBusyCursor=true;
		}

		/**
		 * 获取页面模型对象
		 * @return 模型对象 
		 */
		public function get model():EnrollDtlModel
		{
			return _model as EnrollDtlModel;
		}

	
		/**
		 * 取得远程对象查询实体的方法
		 * @return 远程对象查询实体的接口方法
		 */
		public function get getEntityOperation():Object
		{
			return _service.getEnrollDtlByPrimaryKey;
		}

		/**
		 * 取得远程对象检索实体的方法
		 * @return 远程对象检索实体的接口方法
		 */
		public function get searchOperation():Object
		{
			return _service.searchEnrollDtlList;
		}

		/**
		 * 取得远程对象新增实体的方法
		 * @return 远程对象新增实体的接口方法
		 */
		public function get insertOperation():Object
		{
			return _service.insertEnrollDtl;
		}

		/**
		 * 取得远程对象修改实体的方法
		 * @return 远程对象修改实体的接口方法
		 */
		public function get modifyOperation():Object
		{
			return _service.updateEnrollDtl;
		}

		/**
		 * 取得远程对象删除实体的方法
		 * @return 远程对象删除实体的接口方法
		 */
		public function get deleteOperation():Object
		{
			return _service.deleteEnrollDtl;
		}

		/**
		 * 取得远程对象批量删除实体的方法
		 * @return 远程对象批量删除实体的接口方法
		 */
		public function get deleteBatchOperation():Object
		{
			return _service.deleteEnrollDtlBatch;
		}
	}
}
